package com.huiyujinrong.qiangdanbao.model;


import com.huiyujinrong.qiangdanbao.bean.FirstTradeRecord;
import com.huiyujinrong.qiangdanbao.bean.UserStatusBean;
import com.huiyujinrong.qiangdanbao.network.AppService;

import javax.inject.Inject;

import happyloan.core.EventBusUtil;

public class FragmentMyModel {

    private AppService service;

    @Inject
    FragmentMyModel(AppService service) {
        this.service = service;
    }

    public void selectUserStatus(String user_id) {
        EventBusUtil<UserStatusBean> util = new EventBusUtil<>();
        util.sendEvent4Call(service.selectUserStatus(user_id));
    }

    public void findUserFirstTradeRecord(String user_id) {
        EventBusUtil<FirstTradeRecord> util = new EventBusUtil<>();
        util.sendEvent4Call(service.findUserFirstTradeRecord(user_id));
    }
}
